#ifndef SCHEDULEITEM_H
#define SCHEDULEITEM_H

#include <QWidget>
#include "../remoteservice/scheduleinfo.h"

namespace Ui {
class ScheduleItem;
}

class ScheduleItem : public QWidget
{
    Q_OBJECT
    
public:
    explicit ScheduleItem(QWidget *parent = 0);
    ~ScheduleItem();
    void setData(ScheduleInfo::schedule_t d);
    QString conferenceNumber();
    QString starttime();
    QString endtime();

signals:
    void hasFocus(bool r);

protected:
    void focusInEvent(QFocusEvent *e);
    void focusOutEvent(QFocusEvent *e);
    void paintEvent(QPaintEvent *e);

private:
    void setLabelFocusStyle(bool t);
    
private:
    Ui::ScheduleItem *ui;
    ScheduleInfo::schedule_t m_d;
};

#endif // SCHEDULEITEM_H
